namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 操作类型点位详情配置
    /// </summary>
    [SugarTable("operation_point_config")]
    public class OperationPointConfig : BaseEntity
    {
        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public int Id { get; set; }

        /// <summary>
        /// 产线代号
        /// </summary>
        [SugarColumn(ColumnName = "line_code")]
        public string LineCode { get; set; }

        /// <summary>
        /// 工位代号
        /// </summary>
        [SugarColumn(ColumnName = "station_code")]
        public string StationCode { get; set; }

        /// <summary>
        /// 产品型号
        /// </summary>
        [SugarColumn(ColumnName = "production_type")]
        public string ProductionType { get; set; }

        [SugarColumn(ColumnName = "operation_type")]
        public int OperationType { get; set; }

        /// <summary>
        /// 操作点位序号
        /// </summary>
        [SugarColumn(ColumnName = "point_id")]
        public int PointId { get; set; }

        /// <summary>
        /// 组名称
        /// </summary>
        [SugarColumn(ColumnName = "group_name")]
        public string GroupName { get; set; }

        /// <summary>
        /// 点位序号
        /// </summary>
        [SugarColumn(ColumnName = "item_no")]
        public int ItemNo { get; set; }

        /// <summary>
        /// 点位名称
        /// </summary>
        [SugarColumn(ColumnName = "item_name")]
        public string ItemName { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [SugarColumn(ColumnName = "item_sort")]
        public int? ItemSort { get; set; }

        /// <summary>
        /// 点位地址
        /// </summary>
        [SugarColumn(ColumnName = "item_address")]
        public string ItemAddress { get; set; }

        /// <summary>
        /// 点位类型
        /// </summary>
        [SugarColumn(ColumnName = "item_type")]
        public int ItemType { get; set; }

        /// <summary>
        /// 点位类型名称
        /// </summary>
        [SugarColumn(ColumnName = "item_type_name")]
        public string ItemTypeName { get; set; }

        /// <summary>
        /// 写入值
        /// </summary>
        [SugarColumn(ColumnName = "item_write_value")]
        public string ItemWriteValue { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "creation_time")]
        public DateTime? CreationTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "creator_name")]
        public string CreatorName { get; set; }
    }
}